package cn.shit;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class TestPattern {
    public static void find(String origin) {
        Pattern pattern = Pattern.compile("\\d");
        Matcher matcher = pattern.matcher(origin);
        //System.out.println(matcher.group());
        System.out.println(matcher.matches());
    }

    public static void main(String[] args) {
        String s = "abc";
        System.out.println(s.matches("[a-z]"));
        find("0abc3defg4?hijk5lm6!nop7qrs-=st");
    }
}
